package com.qdlc.p2p.dal.dto;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.qdlc.p2p.common.constant.Global;

/**
 * 投标历史
 *
 * @author liya
 * @version 1.1.0.0
 */
@Entity
@Table(name = Global.DB_PREFIX + "borrow_tender_his")
public class BorrowTenderHis {

    /** 主键 */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /** 投资人 */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_id")
    private User user;

    /** 状态 0投标待处理，1成功，2失败  3已处理 */
    private int status;

    /** 投标金额 */
    private double money;

    /** 利息 */
    private double interest;

    /** 投标类型 0网站投标;1自动投标;2手机投标 */
    private byte tenderType;

    /** 添加时间 */
    private Date addTime;

    /** ip */
    private String addIp;

    /** 登记债权时候的订单号 */
    private String tenderBilNo;

    /** 唯一标识符 */
    private String uuid;

    /** 借款标题 */
    private String title;

    /** 完成比例 */
    private double scales;

    /** 年利率 */
    private double apr;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getInterest() {
        return interest;
    }

    public void setInterest(double interest) {
        this.interest = interest;
    }

    public byte getTenderType() {
        return tenderType;
    }

    public void setTenderType(byte tenderType) {
        this.tenderType = tenderType;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getAddIp() {
        return addIp;
    }

    public void setAddIp(String addIp) {
        this.addIp = addIp;
    }

    public String getTenderBilNo() {
        return tenderBilNo;
    }

    public void setTenderBilNo(String tenderBilNo) {
        this.tenderBilNo = tenderBilNo;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getScales() {
        return scales;
    }

    public void setScales(double scales) {
        this.scales = scales;
    }

    public double getApr() {
        return apr;
    }

    public void setApr(double apr) {
        this.apr = apr;
    }
}